package com.hdax.seckill.scheduled;


import com.hdax.seckill.service.SeckillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
public class SeckillSkuScheduld {


    @Autowired
    private SeckillService seckillService;

    /**
     * 秒 分 时 日 月 周
     *
     * 每天晚上三点执行
     */
    @Scheduled(cron = "0 0 3 * * *")
    public void uploadSeckillSkuLatest(){
        seckillService.uploadSeckillSkuLatestDay3();

    }
}
